The Derivation of a Tighter Bound for Top-Down Skew Heaps

نویسندگان

  • Anne Kaldewaij
  • Berry Schoenmakers
چکیده

In this paper we present and analyze functional programs for a number of priority queue operations. These programs are based upon the top-down skew heaps|a truly elegant data structure|designed by D.D. Sleator and R.E. Tarjan. We show how their potential technique can be used to determine the time complexity of functional programs. This functional approach enables us to derive a potential function leading to tighter bounds for the amortized costs of the priority queue operations. From the improved bounds it follows, for instance, that Skewsort, a simple sorting program using these operations, requires only about 1:44Nlog 2 N comparisons to sort N numbers (in the worst case). 1 Amortized complexity in a functional setting By means of a simple example we explain how the potential technique of Sleator and Tarjan 7] can be used to determine the time complexity of functional programs. In this example lists of zeros and ones are used as binary representations of natural numbers. We denote the empty list by ], and the list with head b and tail s is denoted by b] + + s. We abbreviate b] + + ] to b]. Binary list s represents natural number s] ], where ] ] is the abstraction function deened by ]] ] = 0 and b] + + s] ] = b+22 s] ]. The successor function on the natural numbers is in this representation implemented by program suc: suc: ] = 1] suc:((0] + + s) = 1] + + s suc:((1] + + s) = 0] + + suc:s; where the dot \." denotes function application. Note that suc:s] ] = s] ] + 1. As a suitable cost measure for the evaluation of expressions involving function

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Tight Lower Bound for Top-Down Skew Heaps

Previously, it was shown in a paper by Kaldewaij and Schoenmakers that for topdown skew heaps the amortized number of comparisons required for meld and delmin is upper bounded by logφ n, where n is the total size of the inputs to these operations and φ = ( √ 5+1)/2 denotes the golden ratio. In this paper we present worst-case sequences of operations on top-down skew heaps in which each applicat...

متن کامل

Ore extensions of skew $pi$-Armendariz rings

For a ring endomorphism $alpha$ and an $alpha$-derivation $delta$, we introduce a concept, so called skew $pi$-Armendariz ring, that is a generalization of both $pi$-Armendariz rings, and $(alpha,delta)$-compatible skew Armendariz rings. We first observe the basic properties of skew $pi$-Armendariz rings, and extend the class of skew $pi$-Armendariz rings through various ring extensions. We nex...

متن کامل

Binomial Heaps and Skew Binomial Heaps

We implement and prove correct binomial heaps and skew binomial heaps. Both are data-structures for priority queues. While binomial heaps have logarithmic findMin, deleteMin, insert, and meld operations, skew binomial heaps have constant time findMin, insert, and meld operations, and only the deleteMin-operation is logarithmic. This is achieved by using skew links to avoid cascading linking on ...

متن کامل

Skew Heap

Skew heaps are an amazingly simple and lightweight implementation of priority queues. They were invented by Sleator and Tarjan [1] and have logarithmic amortized complexity. This entry provides executable and verified functional skew heaps. The amortized complexity of skew heaps is analyzed in the AFP entry Amortized Complexity.

متن کامل

Minimum-Cost Bounided-Skew Clock Routing*

In this paper, we present a new clock routing algorithm which minimizes total wirelength under any given path-length skew bound. The algorithm constructs a bounded-skew tree (BST) in two steps: (i) a bottom-up phase to construct a binary tree of shortest-distancefeasible regions which represent the loci of possible placements of clock entry points, and (ii) a top-down phase to determine the exa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 37  شماره 

صفحات  -

تاریخ انتشار 1991